//
//  WBProfileController.swift
//  weiboD
//
//  Created by gao2015 on 2016/11/30.
//  Copyright © 2016年 gao2015. All rights reserved.
//

import UIKit

class WBProfileController: WBVIsitorController {

        override func viewDidLoad() {
            super.viewDidLoad()
            if isLogin{
                //登录状态有push按钮
                setuppushUI()
            }else{
                //
                visitorView?.updateVisitorInfo(imageName: "visitordiscover_image_profile", message: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人")
            }
        }
        func setuppushUI() {
            
            navigationItem.rightBarButtonItem = UIBarButtonItem(title: "PUSH", target: self, action: #selector(pushVC))
            
        }

        @objc private func pushVC(){
           let testVc = WBTestViewController()
            navigationController?.pushViewController(testVc, animated: true)
        }
        
        override func didReceiveMemoryWarning() {
            super.didReceiveMemoryWarning()
            // Dispose of any resources that can be recreated.
        }
        
}
